﻿using System;
using TestClassLibrary;

namespace Inheritance
{
    class Program
    {
        static void Main(string[] args)
        {
            BaseObject bo = new BaseObject();
            bo.TestMethod();

            Text text = new Text(-3,-3);
            text.TestMethod();

            Object obj = new object();

            int a;
            
        }
    }

    class BaseObject //:AnotherBaseObject
    {
        protected int x;
        private int y;
        private int width = 99;
        private int height = 99;

        public BaseObject(int x = 8, int y = 8)
        {
            this.x = x;
            this.y = y;
        }

        public void TestMethod()
        {
            Console.WriteLine(x);
            Console.WriteLine(y);
            Console.WriteLine(width);
            Console.WriteLine(height);
            //Console.WriteLine(color);
        }

        public int Height
        {
            get { return height; }
            set { height = value; }
        }


        public int Width
        {
            get { return width; }
            set { width = value; }
        }


        public int Y
        {
            get { return y; }
            set { y = value; }
        }


        public int X
        {
            get { return x; }
            set { x = value; }
        }

    }

    class Text : BaseObject
    {
        public string innerText { get; set; }


        public Text(int x, int y)
            : base(x, y)
        {

        }

        public void TestTextMethod()
        {
            Console.WriteLine(x);
        }
    }

    class Circle
    {
        private BaseObject innerBaseObject;
        private string color;

        public void TestMet()
        {
            
        }
    }
}
